{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Topo - Import a csv file in a geopackage\n", "O. KAUFMANN, 2021." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import geopandas as gpd" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Read text file into a pandas dataframe" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "df = pd.read_csv('./data_gis/example_GRAV_bouguer_mga55.xyz', sep='\\t', header=None, names=['X', 'Y', 'dg'])" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | X | \n", "Y | \n", "dg | \n", "
---|---|---|---|
0 | \n", "384302.181339 | \n", "5.344813e+06 | \n", "-24.61 | \n", "
1 | \n", "384472.181705 | \n", "5.344743e+06 | \n", "-24.64 | \n", "
2 | \n", "384672.182200 | \n", "5.344713e+06 | \n", "-24.72 | \n", "
3 | \n", "384966.182873 | \n", "5.344624e+06 | \n", "-25.42 | \n", "
4 | \n", "384742.183147 | \n", "5.345333e+06 | \n", "-24.14 | \n", "